package com.copm.ifm.servers.sys.mapper.project;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.copm.ifm.servers.sys.entity.SysProjectAuth;
import com.copm.ifm.servers.sys.vo.SysProjectAuthVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目-租户关联关系表(项目授权) Mapper 接口
 * </p>
 *
 * @author zzf
 * @since 2020-12-14
 */
public interface SysProjectAuthMapper extends BaseMapper<SysProjectAuth> {

    List<SysProjectAuth> selectByProjectId(@Param("projectId") int projectId);

    List<SysProjectAuthVO> selectForPage(@Param("param") SysProjectAuth param);

    SysProjectAuthVO getAuthTenantById(Long id);

    int insertList(@Param("list") List<SysProjectAuth> list);
}
